<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增交办意见')"/>
</head>
<body>
<div class="main-content">
    <form id="form-user-add" th:object="${scodeSmall}" class="form-horizontal">
        <input type="hidden" th:field="*{codeBig}">
        <input type="hidden" th:field="*{useFlag}">
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-4 control-label is-required">编号：</label>
                    <div class="col-sm-8">
                        <input name="csvalue" th:field="*{csvalue}" placeholder="请输入编号" class="form-control" type="text" maxlength="30"
                               required>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label is-required">排序值：</label>
                        <div class="col-sm-8">
                            <input name="csord" th:field="*{csord}" placeholder="请输入排序值" class="form-control" type="text" required>
                        </div>
                    </div>
                </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label class="col-sm-2 control-label is-required">内容：</label>
                    <div class="col-sm-10">
                            <textarea name="cstext" th:field="*{cstext}" id="xsysDesc" maxlength="3500"
                                      class="form-control" required
                                      rows="3"></textarea>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<th:block th:include="include :: footer"/>
<script>
    var prefix = ctx + "system/content";

    function submitHandler() {
        if ($.validate.form()) {
            var data = $('#form-user-add').serializeArray();
            $.operate.save(prefix + "/editJson", data);
        }
    }

</script>
</body>
</html>
